#include"shm.hpp"
#include"namepipe.hpp"
int main()
{
shm ser(pathname,g_id,gUer);
Namepipe fifo(com_path,User);
fifo.openforread();

char*shmaddr=(char*)ser.addr();
while(1)
{
string tmp;
fifo.readnamepipe(&tmp);
cout<<"shm memory content:"<<shmaddr<<endl;
sleep(1);
} 

}